﻿using System;
using System.ComponentModel.DataAnnotations;

using Whoever.Framework.Base;

namespace Whoever.Health.Business.Entities
{
    public class UserLog : BusinessEntity
    {
        [Key]
        public int Id { get; set; }
        public int UserId { get; set; }
        [Required]
        public DateTime LoginDate { get; set; }
        public DateTime? LogoutDate { get; set; }
        public string IPAddress { get; set; }

        public virtual User User { get; set; }
    }
}
